#include "PlaceholderType.h"
#include "PlaceholderInfo.h"

CPlaceholderType::CPlaceholderType(
    STypeID InID
    ,ETypeFlags InExtraFlags
    ,int16_t InPlaceholderIndex
    ,CType * InParentType)
    :CType(InID
        ,InExtraFlags | ETypeFlags::Placeholder
    )
{
    PlaceholderInfo=new CPlaceholderInfo();
    PlaceholderInfo->PlaceholderIndex=InPlaceholderIndex;
    PlaceholderInfo->bIsList=false;

}

void CPlaceholderType::SetIsList(bool bInIsList)
{
    PlaceholderInfo->bIsList=bInIsList;
}

int16_t CPlaceholderType::GetPlaceholderIndex() const
{
    return PlaceholderInfo->PlaceholderIndex;
}